using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Configuration;

public partial class EncryptPwd : System.Web.UI.Page
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnEncrypt_Click(object sender, EventArgs e)
    {
        SFG.Common.Utilities.Encryptor _Encryptor = new SFG.Common.Utilities.Encryptor(SFG.Common.Utilities.Encryptor.SymmProvEnum.Rijndael);
        this.tbxValue.Text = _Encryptor.Encrypting(this.txbEncryptString.Text, WebConfigurationManager.AppSettings["EncryptKey"]);
    }
}
